package com.integral.system.position.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.integral.system.position.domain.CfgPositionIntegralDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CfgPositionIntegralDao extends BaseMapper<CfgPositionIntegralDo> {
    @Select("select position_sign from cfg_position_integral where position_no in (select role_no from sys_user_role where user_no = #{userNo}})")
    List<String> getRolesByUser(@Param("userNo") String userNo);
}
